<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="fu"
	uri="http://blueimp.github.com/jQuery-File-Upload/"%>

<s:action name="showCountryList" var="resultCountry" namespace="/" />
<s:action name="showInterestList" var="resultInterest" namespace="/" />

<h1>
	<s:if test="errors.size() > 0">
		<s:fielderror></s:fielderror>
	</s:if>
</h1>

<section id="registrationForm">
	<h1>
		<s:text name="registrationForm.register" />
	</h1>
	<s:form action="register" method="post" enctype="multipart/form-data"
		theme="css_xhtml">

		<s:textfield name="user.login"
			label="%{getText('registrationForm.login')}" labelposition="left" />

		<%-- <s:fielderror fieldName="user.login" cssStyle="color:red;" ></s:fielderror> --%>

		<s:textfield name="user.email"
			label="%{getText('registrationForm.email')}" labelposition="left" />

		<s:password name="user.password"
			label="%{getText('register.password')}" labelposition="left" />


		<s:property value="%{errorMessages[0]}" />
		<s:password name="passwordCheck"
			label="%{getText('register.password')}" labelposition="left" />

		<h3>
			<s:text name="%{getText('registrationForm.otherInformation')}" />
		</h3>

		<s:textfield name="user.name"
			label="%{getText('registrationForm.name')}" labelposition="left" />

		<s:textfield name="user.surname"
			label="%{getText('registrationForm.surname')}" labelposition="left" />

		<s:select name="user.card.country.id" value="76"
			label="%{getText('registrationForm.country')}" labelposition="left"
			list="#resultCountry.countryList" listKey="id"
			listTitle="Choisissez votre pays" listValue="name"
			cssClass="select_register" />
		<s:textfield name="user.card.address"
			label="%{getText('registrationForm.address')}" labelposition="left" />

		<s:textfield name="user.card.zipCode"
			label="%{getText('registrationForm.zipCode')}" labelposition="left" />

		<s:textfield name="user.card.city"
			label="%{getText('registrationForm.city')}" labelposition="left" />

		<s:checkboxlist name="interestIDList"
			label="%{getText('registrationForm.interestList')}"
			list="#resultInterest.interestList" listKey="id" listValue="name"
			labelposition="left" />


		<s:textarea name="card.name" cssClass="textareaRegister"
			label="%{getText('registrationForm.presentation')}"
			labelposition="left" />

		<div id="registerButton">
			<s:submit value="%{getText('registrationForm.registerButton')}" />
		</div>
	</s:form>
	<br />
	<div id="fugit" class="fugit">
		<fu:file />
	</div>

</section>